package com.gec.hawaste.mapper;

import com.gec.hawaste.entity.WasteType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gec.hawaste.vo.WasteTypeDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenxys
 * @since 2022-07-01
 */
@Mapper
public interface WasteTypeMapper extends BaseMapper<WasteType> {
    @Select("SELECT * FROM waste_type WHERE waste_type.id = #{wasteId}")
    WasteType findByWaste(@Param("wasteId") Long wasteId);
}
